package com.anolesoft.yr.mbus.pre.dto;

import com.anolesoft.yr.mbus.pre.entity.PreInqutry;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PreVisitUpdateDTO implements Serializable {

    private String objuid;
    private String facCode;
    private String crmBaseUid;
    private String visitCode;
    @DateTimeFormat(pattern = "yyyy-MM-dd")//yyyy-MM-dd HH:mm:ss
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date visitTime;
    private String clientName;
    private String clientRegion;
    private String contact;
    private String contactPerson;
    private String clientDemand;
    private Integer purchaseQuantity;
    private String salesPerson;
    private String remark;
    private String mmUserUid;
    private Date mmTime;
    private Integer delFlag;

    private List<PreInqutry> preInqutry;

}
